/*
 * @Author: 李一番 
 * @Date: 2021-12-17 16:17:41 
 * @Last Modified by: 李一番
 * @Last Modified time: 2021-12-28 14:00:18
 */

// 引入icon
import type { App } from 'vue'
import * as icons from '@element-plus/icons-vue'

// 引入svg
import 'virtual:svg-icons-register';

const setupIcons = (app: App<Element>) => {
  Object.keys(icons).forEach((key: string) => {
    app.component(key, icons[key as keyof typeof icons] )
  })
}

export default setupIcons